<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>配置传感器</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="__LAYUI__/css/layui.css" media="all">
  <link rel="stylesheet" href="__STATIC__/plugs/font-awesome/css/font-awesome.min.css" media="all">

</head>
<body>
   <div class="layui-container" style="width:90%;padding:15px;">
   	  <div class="layui-form layui-form-pane" action="">
		<div class="layui-form-item">
	  		<label class="layui-form-label">搜索传感器</label>
 			<div class="layui-input-block" style="width:80%">
    			<input type="text" autocomplete="off" placeholder="" class="layui-input search-sensor">
  			</div>
		</div>
	  </div>
      <form class="layui-form layui-clear" action="{:url('basic/hazard/config')}" method="post">
      <div class="layui-row">
     	{volist name="sensorList.data" id="item"}
    		<div class="layui-col-xs4" style="margin:5px 0" id="sensor_{$item.id}">
    			<div class="layui-input-inline">
    				<input type="checkbox" name="sensors[]" value="{$item.id}" title="{$item.title}" {if in_string($item.id,$sensors)}checked{/if} >
    			</div>
    		</div>
    	{/volist}
 	  </div>
 	 </form>
		  
  </div>
</body>
	<script type="text/javascript" src="__LAYUI__/layui.js"></script>
    <script type="text/javascript" src="__JS__/common/config_sensor.js"></script>
</html>